package com.zy.mc_module.ui.micang;

import android.content.Intent;

import androidx.annotation.NonNull;
import androidx.viewbinding.ViewBinding;

import com.zy.mc_module.base.kotlin.BaseActivity;
import com.zy.mc_module.databinding.ActivityRiceMessageBinding;
import com.zy.mc_module.utils.StatusBarUtil;
import com.zy.mc_module.utils.retrofit.error.ThdException;

/**
 * 米仓消息
 */
public class RiceMessageActivity extends BaseActivity<RiceContract.View, RicePresenter, ActivityRiceMessageBinding> implements RiceContract.View {
    @NonNull
    @Override
    public ActivityRiceMessageBinding getViewBinding() {
        return ActivityRiceMessageBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void initView() {
        super.initView();
        StatusBarUtil.setImmersiveStatusBar(this);
    }

    @Override
    protected void initListener() {
        super.initListener();
        binding.riceMessageSystem.setOnClickListener(v -> {
            startActivity(new Intent(context, SystemMessageActivity.class));
        });

        binding.riceMessageActive.setOnClickListener(v -> {
            startActivity(new Intent(context, ActiveMessageActivity.class));
        });
    }

    @Override
    public void onError(ThdException error) {

    }

    @Override
    public <T> void onSuccess(T t, int type) {

    }

    @Override
    public void onError(ThdException error, int type) {

    }
}
